package com.meilai.project.entity.business.contract;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * <p>
 *
 * </p>
 *
 * @author xchen
 * @since 2022-06-08
 */
@Data
@TableName("contract_media_detail")
@ApiModel(value = "ContractMediaDetail对象", description = "")
public class ContractMediaDetail {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键 ID")
    @TableId(type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "合同id")
    private Long contract_id;

    @ApiModelProperty(value = "媒体类型id")
    private Integer media_type_id;

    @ApiModelProperty(value = "媒体规格id(字符串)")
    private String media_type_spec_id;

    @ApiModelProperty(value = "媒体数量")
    private Integer quantity;

    @ApiModelProperty(value = "时长")
    private String duration;

    @ApiModelProperty(value = "金额")
    private BigDecimal amount;

    @ApiModelProperty(value = "单价")
    private BigDecimal price;


    public static final String MEDIA_TYPE_ID = "media_type_id";

    public static final String MEDIA_TYPE_SPEC_ID = "media_type_spec_id";

    public static final String QUANTITY = "quantity";

    public static final String DURATION = "duration";

    public static final String AMOUNT = "amount";

}
